<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui"
     template="../../Template.xhtml"
>
<ui:define name="title">Edit Category</ui:define>

<ui:define name="body">

<h:form>
	<p:panelGrid columns="2">
<h2>Edit Category</h2>
<p:commandButton value="Back" action="ManageCategory.xhtml" />
</p:panelGrid>
</h:form>


<br/><br/><br/><br/>
<h:form>


<p:inputText value="#{categorieMB.id}" rendred="false" />
	<p:panelGrid columns="2">
		<p:outputLabel value="Category Name :"/>
		<p:inputText value="#{categorieMB.intitule}" />
		<p:outputLabel value="Status :" />
		<p:selectOneMenu value="#{categorieMB.statut}" >
			<f:selectItem  itemValue="true" itemLabel="Active"  />
			<f:selectItem  itemValue="false" itemLabel="Inactive"  />
		</p:selectOneMenu>
		<p:commandButton  action="#{categorieMB.Modifier}" value="Edit" ></p:commandButton>
	</p:panelGrid>

</h:form>


</ui:define>

</ui:composition>